Extract single key-value pair of a dictionaryΒΆ

Extract single key-value pair of a dictionary in variables.
d = {'Red': 'Green'}

(c1, c2), = d.items()

print(c1)
print(c2)

Output:

Red
Green